package com.sy.dto;

import com.sy.entity.Blog;
import com.sy.entity.Category;
import com.sy.entity.User;

import java.util.List;

public class DetailBlogInfo {
    /**
     * 当前博客
     */
    private Blog blog;
    /**
     * 发表该博客的用户
     */
    private User user;
    /**
     * 该篇文章对应的标签的集合
     */
    private List<Category> categories;

    public Blog getBlog() {
        return blog;
    }

    public void setBlog(Blog blog) {
        this.blog = blog;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public List<Category> getCategories() {
        return categories;
    }

    public void setCategories(List<Category> categories) {
        this.categories = categories;
    }

    @Override
    public String toString() {
        return "DetailBlogInfo{" +
                "blog=" + blog +
                ", user=" + user +
                ", categories=" + categories +
                '}';
    }
}
